Component org.nuxeo.ecm.platform.comment.service.notification
In bundle org.nuxeo.ecm.platform.comment
Documentation
The TreeCommentManager handles subscription to comment events on documents based on this parameter. If true, document author will be subscribed to comment notifications on his document on the first comment. The comment author will also be subscribed to comment notifications if it is his first comment on the document.
Resolution Order
314
The resolution order represents the order in which this component has been resolved by the Nuxeo Runtime
framework.
You can influence this order by adding "require" tags in your component declaration, to make sure it is resolved after another component.
Contributions
- org.nuxeo.ecm.platform.comment.service.notification--notificationListenerHook
- org.nuxeo.ecm.platform.comment.service.notification--notifications
- org.nuxeo.ecm.platform.comment.service.notification--templates
- org.nuxeo.ecm.platform.comment.service.notification--notificationListenerVeto
- org.nuxeo.ecm.platform.comment.service.notification--configuration
XML Source
<?xml version="1.0" encoding="UTF-8"?>
<component name="org.nuxeo.ecm.platform.comment.service.notification">
<extension
target="org.nuxeo.ecm.platform.ec.notification.service.NotificationService"
point="notificationListenerHook">
<hookListener name="commentNotification"
class="org.nuxeo.ecm.platform.comment.listener.CommentNotificationListener" />
</extension>
<extension
target="org.nuxeo.ecm.platform.ec.notification.service.NotificationService"
point="notifications">
<notification name="CommentAdded" channel="email" enabled="true" availableIn="*"
subject="New comment on '${docTitle}'"
autoSubscribed="false" template="commentAdded" label="notifications.name.CommentAdded">
<event name="commentAdded" />
</notification>
<notification name="CommentUpdated" channel="email" enabled="true" availableIn="*"
subject="Updated comment on '${docTitle}'"
autoSubscribed="false" template="commentUpdated" label="notifications.name.Modification">
<event name="commentUpdated" />
</notification>
</extension>
<extension
target="org.nuxeo.ecm.platform.ec.notification.service.NotificationService"
point="templates">
<template name="baseComment" src="templates/baseComment.ftl" />
<template name="commentAdded" src="templates/commentAdded.ftl" />
<template name="commentUpdated" src="templates/commentUpdated.ftl" />
</extension>
<extension
target="org.nuxeo.ecm.platform.ec.notification.service.NotificationService"
point="notificationListenerVeto">
<veto name="CommentNotificationVeto" class="org.nuxeo.ecm.platform.comment.notification.CommentNotificationVeto" />
</extension>
<documentation>
The TreeCommentManager handles subscription to comment events on documents based on this parameter.
If true, document author will be subscribed to comment notifications on his document on the first comment.
The comment author will also be subscribed to comment notifications if it is his first comment on the document.
@author Nour AL KOTOB (nalkotob@nuxeo.com)
</documentation>
<extension target="org.nuxeo.runtime.ConfigurationService" point="configuration">
<property name="org.nuxeo.ecm.platform.comment.service.notification.autosubscribe">true</property>
</extension>
</component>